home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / cpcug.zip / SORTF.DOC < prev    next >
Text File  |  1987-04-20  |  2KB  |  51 lines

  1. SORTF                                                Vernon Buerg
  2. Command
  3.  
  4. _________________________________________________________________
  5.  
  6. Purpose:   This command reads data from an ASCII file, sorts the
  7.            records, and writes the data to another file.
  8.  
  9. Format:    SORTF [d:][path]fname[.ext] [d:][path]fname[.ext] [/R][/+nnn]
  10.  
  11. Remarks:   Records read from the input file ending with a carriage
  12.            return and line feed are considered logical records and may
  13.            be up to 255 characters in length.
  14.  
  15.            The records are sorted into ascending ASCII character order
  16.            unless /R is supplied to reverse the order.
  17.  
  18.            The key is taken from the first character position, unless
  19.            the /+ operand is used to specify the location of the key
  20.            within the records. The position may be a value from one
  21.            to 255. The first 12 characters at that position are used
  22.            as the record key.
  23.  
  24. Example:   To sort a file in descending order with the keys in position
  25.            10:
  26.  
  27.               SORTF TEST.DAT TEST.SRT /R/+10
  28.  
  29.            Notes:
  30.  
  31.            1.  Depending on the amount of memory available, up to
  32.                40,000 records, or a file of 16Mb, may be sorted.
  33.  
  34.            2.  The advantages of using SORTF instead of the DOS
  35.                SORT filter are that:
  36.  
  37.                o  Files larger than 63K may be sorted; and
  38.                o  Less time is required.
  39.  
  40.            3.  For best results, place the input file on the fastest
  41.                available drive, e.g. RAM disk.
  42.  
  43.            4.  Requires DOS 2.0 or later.
  44.  
  45.  
  46. SORTF was written by Vernon Buerg, for public domain use.
  47. Version 1.4, June 6, 1984.
  48.  
  49.  
  50. 
  51.